/**
 * Creating a sidebar enables you to:
 - create an ordered group of docs
 - render a sidebar for each doc of that group
 - provide next/previous navigation

 The sidebars can be generated from the filesystem, or explicitly defined here.

 Create as many sidebars as you want.
 */

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
  docs: [
    'overview',
    {
      type: 'category',
      label: 'Installation',
      items: [
        'installation/quickstart',
        'installation/dotnettemplate',
        'installation/hosting'
      ]
    },
    'glossary',
    {
      type: 'category',
      label: 'Identity and Access Management',
      items: [
        'iam/authmethods',
        'iam/externalidproviders',
        {
          type: 'category',
          label: 'Identity Provisioning',
          items: [
            'iam/automaticidentityprovisioning',
            'iam/manualidentityprovisioning'
          ]
        },
        {
          type: 'category',
          label: 'Security protocols',
          items: [
            'iam/openid',
            'iam/saml2',
            'iam/wsfederation'
          ]
        },
        'iam/storage',
        'iam/configuration',
        'iam/caching'
      ]
    },
    'scim20',
    'mobileapplication',
    {
      type: 'category',
      label: 'Advanced settings',
      items: [
        'advancedsettings/auditing',
        'advancedsettings/realm',
        'advancedsettings/pki',
        'advancedsettings/configuration'
      ]
    },
    {
      type: 'category',
      label: 'Migrations',
      items: [
        'migrations/403to404'
      ]
    },
    {
      type:'category',
      label: 'Developer',
      items: [
        'developer/idserver',
        'developer/adminwebsite',
        'developer/addlanguage'
      ]
    }
  ],
  tutorials: [
    'tutorial/overview',    
    { 
      type: 'category', 
      label: 'Tutorial',       
      items: [ 'tutorial/spa', 'tutorial/regularweb', 'tutorial/protectapi', 'tutorial/m2m', 'tutorial/highlysecuredregularweb', 'tutorial/ciba', 'tutorial/grantmgt','tutorial/wsfederation', 'tutorial/saml', 'tutorial/ldap', 'tutorial/scim', 'tutorial/delegation' ] 
    }
  ]
  // By default, Docusaurus generates a sidebar from the docs folder structure
  /*
  documentationSidebar: [
    {type: 'autogenerated', dirName: '.'}
  ]
  */
};

module.exports = sidebars;
